package com.ecoolex.discount.sales.core.dao;

import com.ecoolex.discount.sales.core.mapper.DiscountProductInventoryMapper;
import org.apache.ibatis.annotations.Param;

public interface DiscountProductInventoryDAO extends DiscountProductInventoryMapper {
    int freeze(@Param("usedTransNo") String usedTransNo,
               @Param("updateStatus") Integer updateStatus,
               @Param("updateUser") String updateUser,
               @Param("productId") Integer productId,
               @Param("currentStatus") Integer currentStatus,
               @Param("size") Integer size);

    int unfreeze(@Param("usedTransNo") String usedTransNo,
                 @Param("updateStatus") Integer updateStatus,
                 @Param("updateUser") String updateUser,
                 @Param("productId") Integer productId,
                 @Param("currentStatus") Integer currentStatus);

    int deduct(@Param("usedTransNo") String usedTransNo,
               @Param("updateStatus") Integer updateStatus,
               @Param("updateUser") String updateUser,
               @Param("productId") Integer productId,
               @Param("currentStatus") Integer currentStatus);

}